package com.example.webdemo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: 文章基础信息类
 * @date 2023/7/29 16:24
 */
@Data
public class Article {
    private int id;
    private String desc;
    private String title;
    private String thumb;
    private List<Tag> tags;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date releaseData;
    private int commentNum;
    private String author;
}
